import request from "@/utils/request";
import requesta from "@/utils/requesta";

// 查询列表
export function getTagList(query) {
  return request({
    url: "/mes/proBarcodePrint/list",
    method: "get",
    params: query,
  });
}

// 新增
export function addTag(data) {
  return request({
    url: "/mes/proBarcodePrint",
    method: "post",
    data: data,
  });
}

// 删除流程达式
export function getInfoByItemCode(code) {
  return request({
    url: "/mes/proBarcodePrint/getInfoByItemCode/" + code,
    method: "get",
  });
}

//获取序列号打印参数
export function getPrintByBanchCode(code) {
  return request({
    url: "/mes/proBarcodePrint/getPrintByBanchCode/" + code,
    method: "get",
  });
}

// 打印批次号
export function printBatchCodeBatchcode(data) {
  return requesta({
    url: "/hici/print/proBarcodePrint/batchcode", //'/mes/pro/workorderSn/print',
    method: "post",
    data: data,
  });
}
//打印序列号
export function proBarcodePrintSncode(data) {
  return requesta({
    url: "/hici/print/proBarcodePrint/sncode", //'/mes/pro/workorderSn/print',
    method: "post",
    data: data,
  });
}
